// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '../views/login';
// 首页
import index from '../views/index';
/**
 * 会议
 */
// 商品管理
import Goods from '../views/goods/Goods';
// 会议主页
import homepage from '../views/meeting/homepage';
// 文件数据
import data from '../views/meeting/data';
// 电子白板
import whiteboard from '../views/meeting/whiteboard';
// 机器信息管理
import Machine from '@/views/machine/Machine';
// 货道信息管理
import MachineAisle from '@/views/machine/MachineAisle';
/**
 * 订单管理
 */
// 交易订单
import Order from '@/views/pay/Order';
/**
 * 系统管理
 */
// 用户管理
import user from '../views/system/user';
// 菜单管理
import Module from '../views/system/Module';
// 角色管理
import Role from '../views/system/Role';
// 领域管理
import Dept from '../views/system/Dept';
// 权限管理
import Permission from '../views/system/Permission';
/**
 * 支付管理
 */
// 支付配置信息
import MachineConfig from '@/views/machine/MachineConfig';
// 支付配置
import Config from '@/views/pay/Config';
/**
 * 数据监控
 */
// 监控查询
import druidLogin from '@/views/druid/login';

// 报文数据
import message from '@/views/file/message';
// 多媒体数据
import multimedia from '@/views/file/multimedia';
//外部专家数据
import professor from '@/views/file/professor';
// 语音白板数据
import voice from '@/views/file/voice';
// 历史会议数据
import history from '@/views/file/history';
// 其他数据
import other from '@/views/file/other';

/**
 * 日志管理
 */
// 登录日志
import Log from '@/views/log/Log';
// 操作日志
import operation from '@/views/log/operation';
// 系统日志
import systemlog from '@/views/log/systemlog';
// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/index',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [{
            path: '/goods/Goods',
            name: '商品管理',
            component: Goods,
            meta: {
                requireAuth: true
            }
        },
          {
            path: '/meeting/data',
            name: '文件管理',
            component: data,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/meeting/homepage',
            name: '会议主页',
            component: homepage,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/meeting/whiteboard',
            name: '电子白板',
            component: whiteboard,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/user',
            name: '用户管理',
            component: user,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Module',
            name: '菜单管理',
            component: Module,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Role',
            name: '角色管理',
            component: Role,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Dept',
            name: '领域管理',
            component: Dept,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/system/Permission',
            name: '权限管理',
            component: Permission,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/machine/MachineConfig',
            name: '支付配置信息',
            component: MachineConfig,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/pay/Config',
            name: '支付配置',
            component: Config,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/druid/login',
            name: '监控查询',
            component: druidLogin,
            meta: {
                requireAuth: true
            }
        }, {
            path: '/file/message',
            name: '报文数据',
            component: message,
            meta: {
                requireAuth: true
            }
        },{
            path: '/file/multimedia',
            name: '多媒体数据',
            component: multimedia,
            meta: {
                requireAuth: true
            }
        },{
            path: '/file/professor',
            name: '外部专家数据',
            component: professor,
            meta: {
                requireAuth: true
            }
        },{
            path: '/file/voice',
            name: '语音白板数据',
            component: voice,
            meta: {
                requireAuth: true
            }
        },{
            path: '/file/history',
            name: '历史会议数据',
            component: history,
            meta: {
                requireAuth: true
            }
        },{
            path: '/file/other',
            name: '其他数据',
            component: other,
            meta: {
                requireAuth: true
            }
        },{
            path: '/log/Log',
            name: '登录日志',
            component: Log,
            meta: {
                requireAuth: true
            }
        },{
            path: '/log/operation',
            name: '操作日志',
            component: operation,
            meta: {
                requireAuth: true
            }
        },{
            path: '/log/systemlog',
            name: '系统日志',
            component: systemlog,
            meta: {
                requireAuth: true
            }
        },
        ]
    }]
})


